home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Resources / Partition Logic 0.61 / partlogic-0.61.iso / system / headers / stdio.h < prev    next >
C/C++ Source or Header  |  2006-01-31  |  2KB  |  79 lines

  1. // 
  2. //  Visopsys
  3. //  Copyright (C) 1998-2006 J. Andrew McLaughlin
  4. //  
  5. //  This library is free software; you can redistribute it and/or modify it
  6. //  under the terms of the GNU Lesser General Public License as published by
  7. //  the Free Software Foundation; either version 2.1 of the License, or (at
  8. //  your option) any later version.
  9. //
  10. //  This library is distributed in the hope that it will be useful, but
  11. //  WITHOUT ANY WARRANTY; without even the implied warranty of
  12. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
  13. //  General Public License for more details.
  14. //
  15. //  You should have received a copy of the GNU Lesser General Public License
  16. //  along with this library; if not, write to the Free Software Foundation,
  17. //  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. //
  19. //  stdio.h
  20.  
  21. // This is the Visopsys version of the standard header file stdio.h
  22.  
  23. #if !defined(_STDIO_H)
  24.  
  25. #include <stdarg.h>
  26. #include <sys/stream.h>
  27.  
  28. // Make FILE be the same as a Visopsys 'fileStream'
  29. #define FILE fileStream
  30.  
  31. #ifndef EOF
  32. #define EOF -1
  33. #endif
  34.  
  35. #define stdout (FILE *) 1
  36. #define stdin  (FILE *) 2
  37. #define stderr (FILE *) 3
  38.  
  39. // For seeking using fseek()
  40. #define SEEK_SET 0x01
  41. #define SEEK_CUR 0x02
  42. #define SEEK_END 0x03
  43.  
  44. // fpos_t
  45. typedef unsigned fpos_t;
  46.  
  47. // Available functions
  48. int fflush(FILE *);
  49. int fgetpos(FILE *, fpos_t *);
  50. char *fgets(char *, int, FILE *);
  51. int fprintf(FILE *, const char *, ...) __attribute__((format(printf, 2, 3)));
  52. size_t fread(void *, size_t, size_t, FILE *);
  53. int fseek(FILE *, long, int);
  54. int fsetpos(FILE *, fpos_t *);
  55. long ftell(FILE *);
  56. size_t fwrite(const void *, size_t, size_t, FILE *);
  57. int getc(FILE *);
  58. int getchar(void);
  59. char *gets(char *);
  60. void perror(const char *);
  61. int printf(const char *, ...) __attribute__((format(printf, 1, 2)));
  62. int putc(int, FILE *);
  63. int putchar(int);
  64. int puts(const char *);
  65. int remove(const char *);
  66. int rename(const char *, const char *);
  67. void rewind(FILE *);
  68. int scanf(const char *, ...) __attribute__((format(scanf, 1, 2)));
  69. int snprintf(char *, size_t, const char *, ...)
  70.      __attribute__((format(printf, 3, 4)));
  71. int sprintf(char *, const char *, ...) __attribute__((format(printf, 2, 3)));
  72. int vfprintf(FILE *, const char *, va_list);
  73. int vprintf(const char *, va_list);
  74. int vsnprintf(char *, size_t, const char *, va_list);
  75. int vsprintf(char *, const char *, va_list);
  76.  
  77. #define _STDIO_H
  78. #endif
  79.